home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / pprd100 / pprd.prn < prev    next >
Encoding:
Text File  |  1996-07-10  |  6.4 KB  |  199 lines

  1.  
  2.  
  3.  
  4. PPRD(1)                                                   PPRD(1)
  5.  
  6.  
  7. NAME
  8.        pprd - LPD (network printer daemon) for DOS
  9.  
  10. SYNOPSIS
  11.        pprd [-pport] [-n#] [-t] [-i] [-s] [-b#] [-#] [-ahostlist]
  12.        [-dhostlist] [-lhost] [-j[port]]
  13.  
  14. DESCRIPTION
  15.        pprd is a small program that turns an XT or AT running DOS
  16.        into  a dedicated LPD printer server. You can send jobs to
  17.        the printers from any machine running LPR.  It can  handle
  18.        up  to  3  parallel printer ports.  Serial printers can be
  19.        handled by running the interrupt I/O driver TSRCOMM, which
  20.        is in LPTCOM.ZIP and diverting LPTn to COMn.
  21.  
  22.        pprd  supports  an  alternate  protocol to LPD, called the
  23.        Direct protocol here.  It is invoked by specifying the  -j
  24.        flag.  The job is sent as a TCP data stream ended by clos-
  25.        ing the connection.  The advantage  of  this  protocol  is
  26.        that  the  size  of  the  job does not need to be known in
  27.        advance, which could be used to advantage in a print redi-
  28.        rector.  It  is  more  efficient  because  there are fewer
  29.        transactions than in the LPD protocol.
  30.  
  31. INSTALLATION
  32.        pprd requires:  Parallel or serial printer ports connected
  33.        to  printers,  a network interface card and a FTP Software
  34.        specification Packet Driver for it,  and  a  valid  WATTCP
  35.        configuration file, WATTCP.CFG.
  36.  
  37.        To  install,  edit  the  file  WATTCP.CFG,  filling in the
  38.        entries. Then edit your  autoexec.bat  file  to  load  the
  39.        packet driver, then pprd.  Something like this:
  40.  
  41.        a:\pprd\ni5210 0x60 2 0x300 0xcc00
  42.        rem If you wish to put your wattcp.cfg in a particular directory
  43.        set wattcp_cfg=a:\pprd\wattcp.cfg
  44.        a:\pprd\pprd
  45.  
  46.        Turn  your printers on before starting pprd or it will not
  47.        detect the printers. Alternatively, use  the  -n  flag  in
  48.        pprd.
  49.  
  50.        pprd  outputs  tones  (C,D,E)  for  as  many  printers  as
  51.        detected.  pprd  displays  status  on  console,  including
  52.        changes  in  printer  status.  It responds to LPQ queries,
  53.        returning status reports to the client.
  54.  
  55.        You can now send jobs from clients with LPR. The  printers
  56.        served  are  called  lpt1  through lpt3, in any mixture of
  57.        case. You can also set the printer names in WATTCP.CFG  by
  58.        assigning  to PRINTER[123]NAME.  pprd is multithreaded and
  59.        can have as many connections as printers active.  Control-
  60.        F1   through   F3  can  be  used  to  abort  jobs  on  the
  61.  
  62.  
  63.  
  64. DOS network application    15 July 1995                         1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. PPRD(1)                                                   PPRD(1)
  71.  
  72.  
  73.        corresponding printers.
  74.  
  75.        It's probably best to install pprd in a Berkeley LPD envi-
  76.        ronment  as  a printer accessed via a ifilter, rather than
  77.        as a remote host. That way  you  can  queue  up  jobs  and
  78.        implement any LPD filters on the client.  A couple of Perl
  79.        scripts for Berkeley LPD system are provided. Edit  lpr.pl
  80.        to  configure  and install it as ifilter. Banner.pl should
  81.        be installed as ofilter.  You should provide a dummy  file
  82.        for  the  lp  attribute  because LPD expects to be able to
  83.        open and lock it. This file will not be printed to.
  84.  
  85.        You may  wish  to  restrict  access  to  pprd  to  certain
  86.        machines  only.  The -a and -d options are for this.  pprd
  87.        allows connections only from machines on the  same  subnet
  88.        (as  determined from the subnet mask) by default; this can
  89.        be disabled by the -s option.
  90.  
  91. OPTIONS
  92.        -pport listen on port instead of the default 515.
  93.  
  94.        -xy    disable printers x and y (numbers between 1 and 3)
  95.  
  96.        -n#    # printers, no matter what BIOS claims
  97.  
  98.        -t     don't indicate available printers with tones
  99.  
  100.        -i     reinitialise printer via hardware line on job abort
  101.  
  102.        -bxy   Print directly to hardware port of printers x and y
  103.               instead of using the BIOS print service. This  only
  104.               works  on  real parallel ports, i.e. not redirected
  105.               to serial ports, files or network connections,  and
  106.               is  only likely to improve things with fast printer
  107.               interfaces,  in  particular   those   with   memory
  108.               buffers,  such  as  laser  printers.   On low speed
  109.               printers, it isn't likely  to  make  things  faster
  110.               since the bottleneck is the printer.
  111.  
  112.        -s     bypass subnet match
  113.  
  114.        -alist comma  separated  list  of  up  to  20 domain names
  115.               allowed connection
  116.  
  117.        -dlist comma separated list  of  up  to  20  domain  names
  118.               denied connection
  119.  
  120.               -a and -d are mutually exclusive and independent of
  121.               subnet check
  122.  
  123.        -lhost log diagnostics via SYSLOG protocol to host
  124.  
  125.        -j[port]
  126.               use Direct protocol  to  port  (defaults  to  9100)
  127.  
  128.  
  129.  
  130. DOS network application    15 July 1995                         2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. PPRD(1)                                                   PPRD(1)
  137.  
  138.  
  139.               instead of LPD protocol
  140.  
  141. CONFIGURATION FILE SETTINGS
  142.        Assigning  to PRINTER1NAME, PRINTER2NAME, and PRINTER3NAME
  143.        in WATTCP.CFG will  give  names  other  than  the  default
  144.        lpt[123] to the printers.
  145.  
  146. OTHER FILES
  147.        Two  auxiliary  programs  are  provided, jd.pl and jd.exe,
  148.        written in Perl  and  C  respectively.  These  are  sample
  149.        clients that use the Direct protocol.
  150.  
  151.        Jd.exe   reads   additional   configuration   entries   in
  152.        WATTCP.CFG, see jd documentation.
  153.  
  154.        Another Perl script called jdlprd.pl is provided. If  this
  155.        is  run  on a BSD Unix host, it provides a gateway from jd
  156.        jobs to the lpr system on Unix.
  157.  
  158. SEE ALSO (on Unix)
  159.        lpr(1), lpq(1), lpc(8), lpd(8)
  160.  
  161. FILES
  162.        WATTCP.CFG, LPTCOM.ZIP
  163.  
  164. DIAGNOSTICS
  165.        Hopefully self explanatory.
  166.  
  167. COPYRIGHT
  168.        pprd is under the  GNU  Copyright,  which  allows  you  to
  169.        freely  distribute the program provided the sources accom-
  170.        pany, or are made available on request.  See  COPYING  for
  171.        details.
  172.  
  173. AUTHOR
  174.        Ken Yap (ken@syd.dit.csiro.au)
  175.  
  176. DATE
  177.        July 1995
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. DOS network application    15 July 1995                         3
  197.  
  198.  
  199.